package com.nandi.emergencyinspection.mvp

import com.nandi.emergencyinspection.bean.UserInfoBean
import com.tbright.ktbaselibrary.mvp.BaseModel
import com.tbright.ktbaselibrary.mvp.BasePresenter
import com.tbright.ktbaselibrary.mvp.BaseView

interface LoginContract {

    abstract class LoginPresenter : BasePresenter<BaseModel, LoginView>() {
        abstract  fun login(token:String,code:String,randomStr:String,username:String,password:String)
        abstract  fun getIm(name:String,id:String)
        abstract  fun getUser(d:String)
    }

    interface LoginView : BaseView {
        fun loginResult(result: String)
        fun getIm(result: String)
        fun getUserResult(result: UserInfoBean)
    }
}